package com.zlzlib.libindexpy.helper;

import com.zlzlib.libindexpy.bean.BasePyIndexBean;

import java.util.List;

/**
 * Created by zlz on 2019/11/4.
 */
public interface PyDataHelper {
    //设置比较的拼音长度
    void setSortLength(int length);

    //汉语-> 拼音
    PyDataHelper convert(List<? extends BasePyIndexBean> data);

    //拼音->tag
    PyDataHelper fillIndexTag(List<? extends BasePyIndexBean> data, boolean isNumber);

    //对源数据进行排序
    PyDataHelper sortSourceData(List<? extends BasePyIndexBean> data, boolean isNumber);

    //对IndexBar的数据源进行排序(索引栏),在 sortSourceData 方法后调用
    PyDataHelper getSortedIndexData(List<? extends BasePyIndexBean> sourceData, List<String> data);

}
